package com.lfy.event;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SendController {
    @Resource
    SendLfy sendLfy;

    @GetMapping("/sendmsg")
    public String sendMsg(){

        Lfy lfy = new Lfy();
        lfy.setId(1L);
        lfy.setName("吕飞扬");
        return sendLfy.sendMsg(lfy);

    }
}
